package com.xj.admin.bussiness.deviceInformationImg.service.impl;


import com.baomidou.mybatisplus.mapper.Wrapper;
import com.xj.common.bussiness.deviceInformationImg.entity.TbDeviceInformationImg;
import com.xj.common.bussiness.deviceInformationImg.mapper.TbDeviceInformationImgMapper;
import com.xj.admin.bussiness.deviceInformationImg.service.ITbDeviceInformationImgService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 设备各种铭牌的照片 服务实现类
 * </p>
 *
 * @author Hmemb
 * @since 2018-01-27
 */
@Service
public class TbDeviceInformationImgServiceImpl extends ServiceImpl<TbDeviceInformationImgMapper, TbDeviceInformationImg>
        implements ITbDeviceInformationImgService {

    @Autowired
    private TbDeviceInformationImgMapper tbDeviceInformationImgMapper;

    @Override
    public void updateFactoryNum(TbDeviceInformationImg tbDeviceInformationImg) {
         tbDeviceInformationImgMapper.updateFactoryNum(tbDeviceInformationImg);
    }

    @Override
    public List<TbDeviceInformationImg> getTbdeviceInformationImg(TbDeviceInformationImg tbDeviceInformationImg) {
        return tbDeviceInformationImgMapper.getDeviceInformationImgByCondition(tbDeviceInformationImg);
    }

    @Override
    public void updateDeviceImg(TbDeviceInformationImg tbDeviceInformationImg) {
        tbDeviceInformationImgMapper.updateDeviceImg(tbDeviceInformationImg);
    }
}
